10. Increment and Decrement
Increment and decrement
Increment and Decrement
Here is a summary of operators you've learned so far:
x++ or ++x // same as x = x + 1
x-- or --x // same as x = x - 1
x += 3 // same as x = x + 3
x -= 6 // same as x = x - 6
x *= 2 // same as x = x * 2
x /= 5 // same as x = x / 5